import { CapsuleChart } from '@jiaminghi/data-view-react'

const state = {
	config: {
		// 单位
		unit: '（人）',
		showValue: false,
		data: [],
	},
}

export const UserIdentityCategory = (props: any) => {
	const config = Object.assign({}, state.config, props.userIdentityCategory)

	return (
		<div className="w-full h-full">
			{props.userIdentityCategory ? (
				<CapsuleChart config={config} className="w-full h-full" />
			) : undefined}
		</div>
	)
}
